enum get all values C#

35

enum get all values C# -

//typed
var values = Enum.GetValues(typeof(Foos)).Cast<Foos>()

c# iterate enum -

var values = Enum.GetValues(typeof(Foos));

Comments

Submit
0 Comments